<div>
    <div class="lter b-b wrapper-md">
        <h4 class="m-n font-thin">设置打印机</h4>
    </div>
    <div>
        <form name="printerForm">
            <div class="form-horizontal form-validation">
                <div class="panel-body">
                    <div class="m-b-md">
                        <div class="form-group">
                            <label class="col-sm-2 text-right control-label">设备名称</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" placeholder="模板名称" ng-model="printer.name" required="">
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 text-right control-label">设备品牌</label>
                            <div class="col-sm-5">
                                <div class="inline m-r-xs">
                                    <div class="radio inline m-r-n">
                                        <label class="i-checks i-checks-sm">
                                            <input type="radio" name="printerType" ng-model="printer.printerType" value="0">
                                            <i></i>
                                        </label>
                                    </div>
                                    <p class="inline m-n">易联云(不支持K1/K2/K3)</p>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 text-right control-label">打印纸宽</label>
                            <div class="col-sm-5">
                                <div class="inline m-r-xs">
                                    <div class="radio inline m-r-n">
                                        <label class="i-checks i-checks-sm">
                                            <input type="radio" name="paperWidthType" ng-model="printer.paperWidthType" value="0">
                                            <i></i>
                                        </label>
                                    </div>
                                    <p class="inline m-n">58mm</p>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 text-right control-label">备注名称</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" placeholder="如后厨打印机、结账单打印机" ng-model="printer.remarks" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 text-right control-label">设备号码</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" placeholder="输入打印机底部的机器号" ng-model="printer.deviceNumber" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 text-right control-label">设备密钥</label>
                            <div class="col-sm-5">
                                <input type="text" class="form-control" placeholder="输入打印机底部的密钥" ng-model="printer.deviceKey" required>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 text-right control-label">小票样式</label>
                            <div class="col-sm-5">
                                <select name="account" class="form-control" name="printerTemplateId" ng-model="printer.printerTemplateId" ng-options="item.id as item.name for item in printerTemplate" required>
                                    <option value="">请选择小票样式类别</option>
                                </select>
                                <div ng-if="printerForm.printerTemplateId.$touched">
                                    <p ng-if="printerForm.printerTemplateId.$error.required" class="text-danger h6">小票样式是必需的</p>
                                </div>
                            </div>
                            <div class="col-sm-3 no-padder">
                                <div class="inline m-t-sm">
                                    <a ui-sref="app.printerTemplateAdd" ng-click="cancel()" class="text-info inline h6">添加小票样式</a>
                                    <p class="inline h6">|</p>
                                    <a class="text-info inline h6" ng-click="queryPrinterTemplate()">刷新</a>
                                </div>
                            </div>
                        </div>
                        <div class="form-group">
                            <label class="col-sm-2 text-right control-label">一次打印</label>
                            <div class="col-sm-5">
                                <div class="inline m-r-xs">
                                    <div class="radio inline m-r-n">
                                        <label class="i-checks i-checks-sm">
                                            <input type="radio" name="number"  ng-model="printer.number" value="1">
                                            <i></i>
                                        </label>
                                    </div>
                                    <p class="inline m-n">1张</p>
                                </div>
                                <div class="inline m-r-xs">
                                    <div class="radio inline m-r-n">
                                        <label class="i-checks i-checks-sm">
                                            <input type="radio" name="number"  ng-model="printer.number" value="2">
                                            <i></i>
                                        </label>
                                    </div>
                                    <p class="inline m-n">2张</p>
                                </div>
                                <div class="inline m-r-xs">
                                    <div class="radio inline m-r-n">
                                        <label class="i-checks i-checks-sm">
                                            <input type="radio" name="number"  ng-model="printer.number" value="3">
                                            <i></i>
                                        </label>
                                    </div>
                                    <p class="inline m-n">3张</p>
                                </div>
                                <div class="inline m-r-xs">
                                    <div class="radio inline m-r-n">
                                        <label class="i-checks i-checks-sm">
                                            <input type="radio" name="number"  ng-model="printer.number" value="4">
                                            <i></i>
                                        </label>
                                    </div>
                                    <p class="inline m-n">4张</p>
                                </div>
                            </div>
                        </div>

                        <div class="form-group">
                            <label class="col-sm-2 text-right control-label">打印类型</label>
                            <div class="col-sm-5">
                                <div class="inline m-r-xs">
                                    <div class="radio inline m-r-n">
                                        <label class="i-checks i-checks-sm">
                                            <input type="radio" name="type"  ng-model="printer.type" value="3">
                                            <i></i>
                                        </label>
                                    </div>
                                    <p class="inline m-n">堂食</p>
                                </div>
                                <div class="inline m-r-xs">
                                    <div class="radio inline m-r-n">
                                        <label class="i-checks i-checks-sm">
                                            <input type="radio" name="type"  ng-model="printer.type" value="1">
                                            <i></i>
                                        </label>
                                    </div>
                                    <p class="inline m-n">配送</p>
                                </div>
                                <div class="inline m-r-xs">
                                    <div class="radio inline m-r-n">
                                        <label class="i-checks i-checks-sm">
                                            <input type="radio" name="type"  ng-model="printer.type" value="5">
                                            <i></i>
                                        </label>
                                    </div>
                                    <p class="inline m-n">自提</p>
                                </div>
                            </div>
                        </div>

                    </div>
                    <div class="text-right">
                        <button class="btn btn-success btn-sm m-r-xs" ng-click="add()">保存</button>
                        <a href="" class="b-a b-success btn btn-sm text-success h6 m-r-xs" ng-click="print()">测试打印机</a>
                        <a href="" class="b-a b-success btn btn-sm text-success h6 m-r-xs" ng-click="cancel()">取消</a>
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>